package com.archive.manage.http;

import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
import java.net.URI;


public class HttpWithEntity extends HttpEntityEnclosingRequestBase {
    private String method;

    public HttpWithEntity(final String method) {
        super();
        this.method = method;
    }

    public HttpWithEntity(final URI uri, final String method) {
        super();
        setURI(uri);
        this.method = method;
    }

    HttpWithEntity(final String uri, final String method) {
        super();
        setURI(URI.create(uri));
        this.method = method;
    }

    @Override
    public String getMethod() {
        return method;
    }
}
